package com.dm.yyxr.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dm.yyxr.pojo.Admin;
import com.dm.yyxr.pojo.dto.AdminDto;
import com.dm.yyxr.pojo.dto.CommunityDto;
import com.dm.yyxr.pojo.dto.SupplyAndConsumptions;
import com.dm.yyxr.pojo.dto.SupplyAndConsumptionsDto;

public interface AdminService extends IService<Admin> {
    //获取管理员的分页数据
    Page<AdminDto> getAdmins(Integer pageNo);
    //根据管理员ID获取区域信息的分页列表
    Page<CommunityDto> getCommunity(Integer id, int pageNo);
    //根据供需信息查询管理员和社区信息
    SupplyAndConsumptionsDto getSupplyAndConsumptions(SupplyAndConsumptions supplyAndConsumptions);
    //根据管理员名称查询管理员对象
    Admin getByAdminName(String admin_name);
}
